package kaler.radiovirsa.app.constant;

import java.io.File;
import java.util.ArrayList;

import kaler.radiovirsa.app.R;

public class GlobalConfig {

	public static String radiolinks_stream_virsa = "http://184.154.202.243:8184/";// "http://108.168.244.242:8000/stream/1/";
	public static String radiolinks_stream_sikh = "http://ghost.wavestreamer.com:6190";
	public static String radiolinks_xml = "";// "http://108.168.244.242:8000/stream/1/";
	public static String radiolinks_status = "";// "http://www.radiodhamal.com/status.html";
	public static String radiolinks_aboutus = "";// "http://www.facebook.com/radiodhamalofficial";
	public static String radiolinks_requestsong = "";// "http://www.radiodhamal.com/requestsong.html";

	// Radio virsa
	public static String web_radiovirsa = "http://www.radiovirsa.com";
	public static String addr_fb_radiovirsa = "https://www.facebook.com/RadioVirsaOfficial";
	public static String addr_tw_radiovirsa = "https://twitter.com/radiovirsa";
	public static String addr_youtu_radiovirsa = "http://www.youtube.com/user/RADIOVIRSACOM";
	public static String addr_mail_radiovirsa = "admin@radiovirsa.com";
	public static int idLogoVirsa = R.drawable.logo_radiovirsa_big;
	public static int idImgRequestVirsa = R.drawable.request_virsa;
	
	// Sikh
	public static String web_kokariweb = "http://www.kokriweb.com";
	public static String addr_fb_sikh = "https://www.facebook.com/sikhsangatradio";
	public static String addr_tw_sikh = "http://twitter.com/sikhsangatradio";
	public static String addr_youtu_sikh = "http://www.youtube.com/sikhsangatradio";
	public static String addr_mail_sikh = "sikhsangatradio@live.com";
	public static int idLogoSangat = R.drawable.logo_sikh_big;
	public static int idImgRequestSangat = R.drawable.request_sangat;
	
	// Kênh radio
	// 1 : RadioVirsa
	// 2 : SikhSang
	public static int channel = 0;
	
	// Address Request
	public static String addr_request = "http://radiovirsa.net/request/";
	
	public static String CacheDir = "";
	public static String SavedDir = "";

	public static boolean isPlaying = false;
	public static boolean isRecording = false;

	// Quang cao
	public static String idQC1 = "a1524d2f8262885";
	public static String idQC2 = "a151446b4e1916c";
	public static String idQC3 = "a15252eb1a7c548";
	public static String idQCCurrent = "";
	
	public static ArrayList<String> GetFiles(String DirectoryPath) {
		ArrayList<String> MyFiles = new ArrayList<String>();
		File f = new File(DirectoryPath);

		f.mkdirs();
		File[] files = f.listFiles();
		if (files.length == 0)
			return null;
		else {
			for (int i = 0; i < files.length; i++)
				MyFiles.add(files[i].getName());
		}

		return MyFiles;
	}

}